cleaned up code, removed most debug printf
fixed indent
started prefixes.data