Repaired some bugs, fixed menu and scaled lines properly