Deleted temp files and fixed bugs
Fixed some errors while building