Clean up and comments

Cleaned up some files, added metadata files and added comments.