Fixed errors in all code files