added colors for query time; updated code for psr1/2 compliance; phpdoc updates;