Cleaned version of library. Added routines to add different types to buffer-files
chkfile improved
chfile moved to tools project