Made local repository working again.
Fixed various syntactic errors.