added some functions to the molecule class
added some basic IO functionality to main()
added a function to clean up the structure