worked on smaller functions
fixed casting errors
added project 3
finished main function and refined functions