New build

Changed logic of the command line interface. Backend files work with gui so there isn't code duplication. Just run from src.