Handling categories; adding cmd line parameters