Interface stuff commit
comments on how to use
and added more functionality for the usage of states and the gui