clean_timeset renamed cleantimeset to avoid name conflict. bugs fixed: calls to fscanf() with a pointer-to-short as argument should provide a "%hd" instead of "%d".
Core allocation macros added.