very rough edit test sample functionality added

needs plenty of work