Changed $show to $format

Also improved inline documentation
Docblock fixes