updated with cleaned out comments and lines of code