castling method added and some styling