First pass at updating to Royall standards

added white space to examples
added documentation for parameter spacing in functions
added documentation for _ prefixing of arguments