code style updates, update .data method (fix boolean values)
update jshint for dist
add check for invalid data in constructor
fix spaces