cleaned up source files, added headers, included README