sorting, input header parsing, directory watching

- sorting enabled (although numbers are sorted like text atm)
- updated header parsing for proper communication with i-v-sweep-tool
- directory watching bugs solved (waits for file to be written before
reading)