Added code.

Added main code and changed all package declarations to fit.