Added subroutines "getAtom" and "parseAtom"