added lots of new bindings, moved rendering functions to it's own module, fixed some bugs, cleaned code a bit