Add logging, configuration, exceptions and a command-line beampattern start