new method to `add_parameter' and basic support for user defined optical constants
bugfix for large number of periods
added basic support for user defined optical constants (testing)