Adding comments and code refactoring

Adding comments for better understanding
Code refactoring
EXTJS page created for learning