added a regular print function, and updated the documentation accordingly, also ensured that agent output is routed to the current active textoutput. Fixed numerous output formatting bugs