Removed unnecesary files and added has_component method.