fixed all compiler errors; application now builds