Fix code, borrow guts from lsp.c file and implement initial

test file (no tests yet).
add some test guts
add more tests, logging
Fully implment a test for LSPgram