can customize warning levels
removed debug prints
Merge branch 'optional_compile_flags' into develop