Adding header to output example
Writing interfaces (fixes #1)