code formatting
simplify constructor; add copy() method
formatting
formatting and cleanup
regenerate output