added in libraries.
redoin data structure.
got the thing basically working!
deleted old files.