Fixed bug with segfault orccuring on large texts. Reset some streams and global variables so subsequent calls to granska gets clean starts.
Fixed memory leaks, file size issues and the resetting of global variables between calls to 'granska(char*)'