Fixed bug for checking file start.
Tidied up requirements.
Added skeleton for tests.