Get userfields from user_picture
Update to Moodle Standards
Also need lastaccess
Fix notice
Tidy