Refactored parsing code and clarified a few areas.
Added GPLv2 headers.