Added comments for all methods and classes to debug the issues.