Added dialogue, fixed script "first exexcute" lag

Also fixed some bugs and cleaned up the code a bit