added start script and refactored some writings