fix opening curly brace on functions. closes #22