Further codes exploring and cleaning up

Signed-off-by: 2013gang <2013gangli@gmail.com>