Fixing file formatting
Fixing calculation of Top-Offset