Added html printing functionality, resolved ascii encoding issues