updated for namechanges
renamed from enc.c also updated for future functionality.
renamed
renamed from enc.h to util.h and updated for future functionality
updated and completed