Fixed add/remove atoms functions, added atomList class with (hopefully) efficient add/remove functionality. Added unit tests for adding/removing atoms