Implemented more of the API,
capsuled the scripting language to change it with 4 lines