updated comments and got rid of some blocks of code that didn't work