Improved documentation.
Reordered methods to match dev.ripple.com order.
Made code-generator more robust.