Cleaned up trailing whitespace
- Cleaned up code
- removed emittuples helper
- removed unnecessary directory scanner definition in FSInput