Require function declarations; added samples

Some of samples (protocols) I copied from hosc,
most of them are not converted to our format yet.