moved source
moved tests
fixed references
support for running samples from command line