added Travis support. changed package structure, improved the exporting of functions.