Minor parseInt error fix and formatting update

I hope you like it!