reordered dependencies
corrected travis and npmignore
added tests