first attempt at a refactor
refactored
package and jshint
rename main library