Implement Compare files functionality

@deadlykyo I have implemented this functionality, please let me know your comments regarding the code for it