Fixed some typos and small improvments of phpdocs