Corrected bugs in index-core and added fully working index-add.
Corrected an error about a file lock.