Refactor creation of Text and File instances

fixes #101 
It's available in `@rc` now :)