New parsing method implemented.
Added comments to almost everything.