Alias format, multiple format support, and better options handling.

I added an alias format and an aliasname option. I also added support for multiple formats and added better option handling.