[enh] MainLoop refactor; reading on separated thread
[enh] .gitignore added