Limit 5 chirps for home page. Also clean up code and document it.