update comments and remove outdated code
add readme with usage documentation