added debug option
updated version