minor changes to synax
creation of various functions for different inputs ready for py read