Finish implementation of all encodings existing in UI, and code cleaning