move library parts into src directory
fix naming of encoding mini-lib
Moving things to mini-libraries