included curly brackets in all functions for consistency; changed colour scheme of plot examples