Added check for profile already existing

Added a check for a profile already existing.

Added profile folder creation. Currently, this has no functionallity,
but this will change in the future.