Finished added comments/documentation.