Fixed some bugs

Fixed file creation, filenames and test distribution for threads
Merge branch 'master' of https://github.com/ahn/mideaas