Merge pull request #23 from osa1/master

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