Several bug fixes:

- Fixed an error where GPCAS would try to write input and output
buffers to protected folders, resulting in a crash.

- Fixed an error where the user would have to enter their query
multiple times in order to get the result that they wanted.

- Fixed an error where output buffer would grow out of control and
would not resize.

- Fixed an error where text view would try to write beyond the number
of characters, resulting in the freezing of the program (and all UI
elements).