a little cleanup

- make global variable local
- fix doxygen syntax
- update description of datastructures
cleanup call of sunup() function

- move global vars to parameters
- cleanup includes
- add include guard