Implemented pdf export properly. Ready to go