R6

Removed unnecessary structure.
Created temporary solution fro ungraceful exit
Changed sys init variable to MODULE_F
Still not working
Will only print first write statement