improved readability by reordering functions
added register_user method
){ --> ) {
added insert_canvas method
added update_canvas method
small cleaning
fixed missing parenthesis