Fixed bugs and improved code