Initial commit.
Code improvements.