Add Method Comments

Add method comments for all methods except the main method. Update some
parameter names.