-Fixed a lot of errors. The code seems to be working properly now.