Added inventory retrieval and changed profile dir stuff