Cleaned up the code and renamed some things.  Added stop and go
functions.