Major overhaul of the parser

Now implements better results, enumerable through a proxy and better
accessors for the attributes