New version

Added encodestr and bunch of changes