Rewrite

More functionality, buttons, texture drawing