Add debug options to library

Added the option to debug