Add option page samples
Add func to show hp and state
delete 'isDebug' flag