+filehander rewritten
+added mode_test
+filehander rewritten
+added mode_test