Refactored code. Removed unnecessary fragment files.