Fixes #10, detecting floats and integers in attrs

* fixed parser
* added basic unit test