new java files

refactored code from other modules. cleanup. compile error free.
cleaned up jsps

refactored and cleaned up jsps