Added compare module

Todo: Add proper error handling.