Updated Algos. Wating for Database Query returns.

FILL TODOs
read header for use