Changes made on canvaspaint, added some documentation