Framework bl almost complete. Missing parts: environment loading, gui.