Cleanup
Selectable format for Function or File
Use larger or dynamically allocated buffers.

This allows for larger strings for e.g. function and file formats. Currently the limit is 512 for formats due to reading in the strings. Doc strings are 256