use enum ParseError for errors instead of strings
Merge pull request #5 from seanmonstar/errs

use enum ParseError for errors instead of strings