Several little fixes; actually works now. Minified script added and readme updated.