added basic wordwrapping

Added basic wordwrapping function to main class, can be put in any other class if you'd like