added Profile type, moved types to the end of the file.
added default profile.
added profile(s) as configuration parameter.