added css doc
removed returns nested in IF statements