Lots of comments and some faster code.