added compiler and fixed various bugs