Old content deleted, new approach.
Added debug flag.
Additions of function.s
Major changes in main file.