Can you fix some formatting things? Like unused white space, some places the comments are out of line (not sure if this is a tab\whitespace issue, you want to set your tabs to be 2 spaces).