cleanup qrb calculation

- change internal representation of station coordinates from
  string to double numbers
- drop usage of global variables and make them local funtion parameters
- cleaunp include files
- add include guard