Move porflio class into a file where Moodle will find it
Fixed errors