Fix bugs with named arguments, rearrange compiler code
Move and add to comments