added transitions stuff, working on i/o, changing layout.