Fixed some stuff in hack branch

Fixed some fatal issues in hack lang.