added doc comments to index and file pkgs. Added some sql timestamp sorting