Added comments. Code is now complete.