We added docs about ecryptfs check but not in code side. Also refactor code to make it clean. Signed-off-by: Kai Qiang Wu(Kennan) <wkqwu@cn.ibm.com>