Formatting, doc headers.
Adding testing routines.