Fixed duplicate alias issue

Fixed an issue where duplicate aliases could be craete if they had spaces in their name.
Implemented retrieving a single alias

Retrieval is done by supply either an alias name or a directory and the matching information is returned, if possible.