documentation and removed spinner code