added some docs and fixed some stylings