Cleaned up files, added some documentation