removed unused import and fixed a doc-string
Makefile fixes
multiple changes in testing, input validation and implementations