First draft finished of all functions, testing begins