Indentation and error handling

Changed indentation and added error handling to the float conversion
Merge pull request #1 from Rossy96/eiika

Indentation and error handling