change __proto__ to util.inherits
cleanup code style