Final submission

minor changes to comments and added file input