fix raw copy function
new encoding function interface
new decoding interface
new commandline parameter and benchmark
remove old encoding stuff