Fixed config.rb compile problems  and set it into production mode Issue #7