cleaned up code. added description and usage instructions