Fixed a bug where the system would deadlock if the queue capacity was too small, as input and output was done by the same thread

Divided input/output into two threads to avoid the problem.
Also temporarily disabled comment handling, which will be reworked later