Removed strncasecmp and made propagationlaws more modular.