add infinite loop option, tidy up code a bit
new minified version
updated readme