add initial documentation for State and Head