Added a sample program, ability to direct-link samples.
Fixed bad regex