Stage 5 completed with some minor adjustments req

i think search is done needs more testing and fixing of bug that's in
bugs section of header file, could probably be made more elagent and
simple as well but its a basic framework