npe and refactoring
layout
added license and sin