add parse method
Merge pull request #21 from p1tz/master

merge