Restructured application code into application folder and library folder