Made if-visible-buffer take multiple else-stmts

Changed some variable names