Improved the main loop.
Merge pull request #1 from xale89/master

Fixed Stockreader
Merge pull request #1 from baskus/master

Updateing with main