printfln() convenience function

Convenience function for super lightweight logging + docs.

Also fix slightly broken function signatures in the documentation.