basic: added documentation.
basic: apparently the convention for Scala is 2-space indentation.