all errors resolved and input output functions added. still some pre/post traversal messing up warnings