fixed title parsing, added tests and travis integration