Separating class files

Created PUPCommon and expanded JSON methods.