More hacking on the core parts of the validation functions. Added testclass for core.py. It is currently possible to use the lib and the cli part but the stability of each function is not yet guaranted.