cleaned ksengine

replaced PyYAML by pickle; cleared some bugs; splitted ksengine into own
files