Add compare function
Merge pull request #17 from subutai/add_compare

Add compare function