added devise and foundation frameworkd, also added library model