Restructured script entirely

Now runs in interactive mode, or batch mode (via switches)
Stores state in a .rcraft_profile file