Removed unused variables added comments.
Fixed my derps when using a non managed-file.