Removed some non-parsing code. Added a bunch more comments to annotate code