Code refactoring
Added comment to Main Frame