Fixed formatting to follow ruby conventions and added multiple dependency checking