Commented code and summary

Added more comments to code and wrote a summary of the program as a
whole. Should be ready for submission!