added all errors and fixed compilation errors