Deleted ui.Sqare and unused imports
Added javadoc