Reworded popup error messages. Added some extra error catcging