fixed syntax, added status word

fixed up some syntax for the console output and added the status word
encoder.