more demo code added. reorganized directory