Added api docs for version 0.4.0, updated the index page to match the current README.