Fixed decoded_output update for array_size = dimensions = 1

- added 'TT.flatten' call to make sure decoded_update always
  updates as a vector
- removed some of the print statements throughout the code