Cleaned up some unused variables, and added auto-update of toonstate if it hasn't been done yet.
fixed readme
Added additional API info to readme