further progress. getting ready  to create transfer functions. Main file is getting bigger, will need to restructulize it in the future