fix folder typo
add license file, and fix some type conversion warnings
convert int to NSInteger