Fixed Minor Errors

small stuff, like package declaration, putting .java at the end of
files to call them classes, and such