fixing up code, speeding rendering, adding save for chrome/firefox, from master branch