multiple changes for printing and code refactoring.

multiple changes for printing and code refactoring. imports moved to hcdev/__init__.py