Added Sorting Capabilities
Modified regex to parsing documents and removed redundant classes