further cleanup of minor problems

- make variable static to allow only local access
- initialize rigfreq in different files
- handle problem if file could not be opened
add missing parentheses