Added feature 'export rating'
Fixed logical error in code
log user rating action to Moodle log