Modeling and Applications of Ferroelectric Based Devices