Add docstrings, and chnage method name getLogger -> get_logger.
Add tests for log module.
Add .swp files to .gitignore.