little changes to structure

transfered morphology logic to basic_logic.py