Moved positioning code towards the corresponding StateObject. Added AbstractParagraph and several other classes for the refactoring of the positioning code. Fixed bug with the cutting off of text. #5 #4