Fixed some silly bugs and updated readme to the example actually works