added support of attributes ; added command to toggle attributes

Signed-off-by: Guyzmo <guyzmo+github@m0g.net>
fixed logging handling

Signed-off-by: Guyzmo <guyzmo+github@m0g.net>