Rearrangement and basic editing

I reorganized the file structure into packages and moved all the
examples to their own package.
Automated code cleanup

Eclipse powered automated code cleanup was run on the project