fixed issue with unlinking wrong filename, added more tests, upped version
moved analysis functions to separate file, split tests into two files