addEntry method to routertable
compile fixes
add locking and unlocking functions