Updated formatting of examples and fixed docs strings