Formatting and documentation

Signed-off-by: Geoff Lane <geoff@zorched.net>