Add Error Handling for Double and Fix Uncaught NumberFormatException