Fix crashing on empty newlines. Increase max cheat list to 128

Some small fixes.