Import source code from 1.0 version and Maven-ize