simplified various import statements and refactored pretty print interface