Fixed Errors

Fixed all errors before. Some minor access errors still occuring when
requsting IFrame page (due to attachments on domain) but nothing where
there is a security hole.