Added a sample project and fixed a couple of span bugs