Fixes for orbit

- fixed code-style
- removed unused variable