Fixed errors and finalized code for the repo.