added initial compare(contract->building), fixed typos