Fixed reflection usage for MONO. Fixed up bash script for document generation