Modularized the angular codebase and separated into different files