fix grammar mistackes
little refactor. make functions to be a functions and constructors to be a constructors
add use strict, fix found bugs