Cleaned up function definition creator a bit
Auto convertion of arguments to functions (probably a bad idea but no more crashing)