Return null when module cannot be found.
Add function comments.
Fix indention.