Modeling Skyrmions, Defect Textures, And Electrical Switchingin Liquid Crystals