completed invoice controller. implemented pdf output with prototype layout