Mac os menubar

Added menubar on tractome window that works for mac os too + minor cleanup.