Fixing Encoder, converting to tab indentation and adding examples