added first version of csresmap
Adapt to coding conventions