Restore contract generation

Enable again the contract generation via rake task. This fixes #101.