Improvements in export functionality.

1. Added EdgeHardness parameter.
2. Fixed couple export to lua issues.