Code refactoring

- Added more comments and descriptions
- Added Cart Controller template file