add new sample code
restructure docs test code
update README for testing