- Made several functions Real-type specific (GMM, post)
 - declclared post the normal way instead of as anonymous function
 - added type specifiers in outer constructor