Tidy comments in api.rb
Use API module in Client. (And tidy whitespace.)
Use API module in Port. (And tidy whitespace/comments.)