Updates for linux

Updates to work with linux and a few new features