code clean up and bug fix
Re-ordered inclusion of classes and fixed problem when pp() or px() is called before the log class and/or the info class has been included.