bug fixes and pep 8 cleanup.  now starting and stopping are working again