Architecture and characterization of the P4DI CMOS hybrid pixel sensor. (26th September 2017)