Adding some specs and fixing debug out