adding stop/start script and fixed bugs