various changes

remove duplicated license file
add configuration pattern
add example app