move plot off scope object
Angular tweaks to work around chrome GC bug
fixed initialization bugs