Added type safety using 'checker_function'

Added type safety for data such as ints, filenames, and floats or decimals.