Variable name fix
Removed useless code
Qt'fied the profile creation.

More usage of the signal/slot pattern.