Further work on test_rnd1

First time to use test to fix issues with buffer implementation
Update gitignore to explicitly list files to ignore
Add fullclean script to remove stray files based on gitignore
Fix Makefiles and configure flag to use higher debug level for compling