Added main launch script, refactored stuff out