cleanup clusterinfo()

- drop compiler warnings
- simplify
- cleanup include files
- add include guard
- move datastructures to file scope
- rename 'ptr' variable to 'nr_of_spots'
cleanup clusterinfo()

- split out functions not belonging to the cluster display