Add long option to "list" command

Move align function to Routine module.