Added commandline flags and ability to use another series directory