Following Android coding style and added documentation.