Generic install method and general fixes and improvemnts