fix convert bug and TypeError. initial commit of tests.
Merge branch 'master' of http://github.com/reklaklislaw/bibs