Use getopt for arguments
Cleanup logic routing for opening IFO 0
Use correct variable to get # of IFOs
Rename to match new functionality
Use proper doc syntax