4.2 changes

• minor work adding dispose for the views and logging for exceptions
• added default as an encoding type