Add function signatures, closes #4.