Initial commit of main Java files.