[enh] MainLoop refactor; reading on separated thread
[enh] .gitignore added
Merge pull request #2 from potato/master

reading in thread