cleaning up models, adding dek and defining library