finished write up of code, testing now