Rearranged samples
Added makefile
Updated makefile
Refactored comments and code
Added debug build
Fixed a few bugs with the boundary checks
Fixed a bug with the bracket matching logic
Fixed a few possible memory leaks
Updated comments