made amazing chagnes to simulator, debugged the outputting