Updated The code

I updated the code and removed code and scripts that where not used.