new generalised encoder functions
standardizeImge.m: more flexible
preprocess.m: use new encoding code
merges exercise3 into 1
legacy functions fixes and extensions
Makefile: updates package
bugfixes