Added more documentation, more example code