Proof-of-concept working.
Function prototypes.
Feature-complete for now.
Merge branch 'dev'