Eliminated several erros. Made project compilable.