Fixed problem where output handlers wheren't being flushed.
Further changes to make flushing work properly
Fixed bug where limitting was one out
Merge branch 'master' of github.com:hamishmorgan/WAG