added tests and fixes for choosedouble, choosefloat, chooseint. fixes #2
added a travis file to check pull requests