Version 1.0 of the functions
Version 1.1 of functions, all single line functions now converted to to multi-line with braces.