faster CHRIN, directory read bugfix and code cleanup
version 1.0 cleanups