added some PHPDoc, and profiler functions calls