Commented all of the code.
Minor fixes.