Fixed doc and added condition for build target