Fixed all the errors (there were many)