valve commit
valve stuff added
finished valve functions
cleaned up main class