Refactored and commented
Added builtin functions and variables
Updated readme
Added license