Exciton: a code for excitations in materials