Basic promgram structure. I only read the parameters, and build a hamiltonian with the band-energy interaction.