removed old files

removed old files that have been replaced with classes
added ignore for .DS_Store
removed duplicate methods

removed duplicate serError and getError methods
cleanup white space
added brackets in conditionals for consistancy
added brackets

cleanup white space
added brackets in conditionals for consistancy