Move readFile() and writeFile() to new class FileIO.
Read input through YAML file also in batch version.

(also remove unused lines of code)
Set duration in YAML file.

Also mark some functions as deprecated.
Merge pull request #88 from aipp/file2

Read input from YAML file also in batch version