Core pr 4

Fixed bugs and merge with PH libraries. The module is not 100% complete yet, but it now lays within the DDB project to do the reset.