Set category right from the start

Users that need a special category can now pass it to the constructor.
Proper path construction

Fix path construction and category.