Fixed typo of integer to float.
Updating script with the user prompt if it is run directly.