update all encoding functions
remove unnecessary files