Swift

Added swift support and bug fixes(Maybe)