reformat code PSR1/2, updated phpDoc