Fixed a bug with the module and deleted deprecated files.