Some print statements, max_iter argument, and prevent numerical issues with log
Merge branch 'master' of https://github.com/cs341/cs341