Moved stack size things to main.pl + warning fixes