Implemented IDisposable

Removes all Code Analysis warnings.
Note: Notepad++ converted the spaces I put in to actual tabs.