almost working with simple program
freed block correctly
minor adjustments to syntax, and unused methods
modified classes to use Id*, and fixed thing so program runs correctly