changed a lot, added common.php,deselector.php and reset.php
Signed-off-by: overblued <ace.jby@gmail.com>