added constants.h and reorganized folders