initial done
updated 2013/Oct.
fix warns.