[core] Javadoc creation and refactoring, making it clean :)