Add some extra functions.

Use an array to store some default parameters.
Add the ability to format the output.