separate building structure and solving potential

-NEW : add the method for writing substrate from input
-CHG : change on the Pytaurus command.