Switched back to JULI logging. Fixed multiple bugs.  Separated Phinms from Phinmsx constants.