Fix many problems which I believe that were introduced when I changed to this new GCC.
 - Event functions wouldn't work for filenames with 8 characters (increasing some buffers fixed it).
 - Events wouldn't get deleted (the var that keeps the array size wasn't being updated for some strange reason). Getting rid of deleteElement and putting its code inside the parent function fixed it.
Started adding events pane.