Made changes to pdf and some fixes to the system