add more const qualifiers

+ formatting
+ eigen macro for classes with matrices as members