Added reformated core code from previous project (CursedScript)