Deleted some unused functions and variables
Split into extra files and added documentation

Auxilliary functions have become their own files and JavaDocs comments
added for Doxygen processing