Many errors fixed and many are to be fixed to make it work.