added some functionality to Atom class. add, clear