Adding object support, other fixes.
added FileSize function
Adding object support.