Now able to delete 'lib' classes successfully. Also made minor improvements in various parts of the script.