Fixed the creation of the ATOM, HETATM, and TER records.
Authored by: bugman 2008-07-04
Parent: [r6713]
Child: [r6715]