fixed a minor HTML error in sidebar template
enhanced demo and added debug tool to composer package