[substitute] Add documentation
[main] Add (very) basic reading of characters form stdin