Fixed compatibility with Moodle 2.7
Bumped up verison.php
Fixed upgrade bug