Rest framework

PDF file size feature. Added more response data points. Refactoring, renaming of objects. No changes to the settings file required.