update styles structure
change text cursor color
split logic to library, introduce hspec