Update swift to beta3

Updated to beta3, new array declaration style,".." and a few other modifications.