removed dead code
implemented proper corner coloring
more ghosting functionality