Improved Code and fixed some errors