updated options class

cleanup
added multisite support
added php docs