Fixed errors and formatting now the rest of the warnings