Errors handled.
Unnecessary gem files deleted.
Some inline documentation added.