LOTS of changes! Added more functions(9, 10, 11), cleaned up a lot of code