Project refactor

refactor of the project defined type to allow for multiple declarations and simplify the setting of default values for parameters.

Includes a couple bug fixes for the ldap configuration.