cleaned up code a little, put export stl button to menu