Work in progress: add profiles functionality.
Profiles functionality ready to be tested
Fixed typo in comment
Fixed loading of profile when new one is created