Refined install scripts.
Add api doc.