updated to match http://opensource.org/licenses/MIT
updated as per npm spec
refactored version as a class
added version test
updated tests