Fixed errors in several files.

Modified removeComponent() to not require a component argument.