Fixed some small bugs, added basic example