Added basic text layout stuff, could use a refactor