added phpDoc style comments