Joseph J. Godlewski, 48, appeared in court Monday on a charge of possession of an improvised explosive device.