Debug added, some bug fixes, README.md added