more updates

mainly commenting - explaining what stuff does
cleaned up a bit