Updates

- style tweaks
- fixed the rate method as it was calculating incorrectly