Fix phpdocs and code styles